export interface IUser {
  id: number;
  role_name: string;
  username: string;
  create_time: number;
  mobile: string;
  email: string;
  mg_state: boolean;
}

export interface IUserList {
  total: number;
  pagenum: number;
  users: IUser[];
}

export interface IUserStatus {
  id: number;
  rid: number;
  username: string;
  mobile: string;
  email: string;
  mg_state: number;
}

export interface IAddUserParams {
  username: string;
  password: string;
  mobile: string;
  email: string;
}

export interface IUpdateUserParams {
  mobile: string;
  email: string;
}

export interface IRoleChildren {
  id: number;
  authName: string;
  path: string;
  children: IRoleChildren[];
}
export interface IRoles {
  id: number;
  roleName: string;
  roleDesc: string;
  children: IRoleChildren[];
}
